import Vue from 'vue'
import store from '../store/index'
import Router from 'vue-router'
import { staticRouter } from './routes.js'

Vue.use(Router)

let  router = new Router({
  mode: 'history',
  base: process.env.BASE_URL,
  routes: staticRouter,
})
// router.beforeEach((to, from, next) => {
//   if(to.name == 'pagefile'){
//     document.body.style.background = store.state.app.designPageUI.body.background
//   }else{
//     document.body.style.background = store.state.app.globalUI.body.background
//   }
//   next()
// })
export default  router;